Skip to content

Instantly share code, notes, and snippets.

@eros18123
eros18123 / converter video webm [] pra <> video embutido
Created September 10, 2026 11:13
converter video webm [] pra <> video embutido - qnd colar video, converte auto
import json
from aqt import gui_hooks
from aqt.editor import Editor, EditorWebView
from aqt.qt import QMimeData
from anki.hooks import wrap
# O formato HTML exato que você solicitou.
# Usamos {filename} como uma variável para o arquivo copiado para o Anki.
VIDEO_HTML_TEMPLATE = '<video id="aaa1" class="video-js anki-video" controls="true" preload="auto" style="max-width: 300px; max-height: 400px;"> <source src="{filename}" type="video/webm"></video>'
@eros18123
eros18123 / heatmap
Last active September 10, 2026 11:14
heatmap
# Revisor Interativo Anual com Cores e Histórico
from aqt import mw, gui_hooks
from aqt.utils import showInfo
import time, datetime
def render_yearly_heatmap(deck_browser, content):
if not mw.col: return
hoje = datetime.date.today()
if not hasattr(mw, 'hm_year'): mw.hm_year = hoje.year
#EXTM3U
#EXTVLCOPT:network-caching=5000
#EXTVLCOPT:http-reconnect=true
#EXTVLCOPT:clock-synchro=0
#EXTVLCOPT:clock-jitter=500
#EXTINF:-1 tvg-logo="http://picon.tivi-ott.net:25461/picon/TURKEY/TRT1.png" group-title="┃TR┃ ULUSAL",┃TR┃ TRT 1 8K
http://line.tivi-one.net:80/play/live.php?mac=00:1A:79:B4:54:0F&stream=196699&extension=ts&play_token=vmAan78Qyz
#EXTINF:-1 tvg-logo="http://picon.tivi-ott.net:25461/picon/TURKEY/Atv.png" group-title="┃TR┃ ULUSAL",┃TR┃ ATV 8K
@JBlond
JBlond / bash-colors.md
Last active September 10, 2026 11:09 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@pipethedev
pipethedev / TypeScript Anti-Slop SKILL.md
Created September 10, 2026 05:40
Anti slop skill for typescript
name anti-slop-typescript
description Simplify TypeScript code by removing defensive over-engineering, fake type safety, unnecessary helpers, redundant runtime checks, and abstraction noise.

TypeScript Anti-Slop

Apply these rules whenever modifying TypeScript or JavaScript code.

The goal is simple, readable, strongly typed code that trusts the type system and validates only at real boundaries.

iOS Game UI for Web & PWA: A Developer Guide

A comprehensive guide to building fullscreen web games and PWAs on iPhone, covering safe area insets, Dynamic Island handling, canvas sizing, and the many undocumented gotchas that will waste your time if you don't know about them.

Building a fullscreen web game for iPhone remains one of the most technically frustrating challenges in web development. The core difficulty stems from Apple's layered physical constraints — the Dynamic Island, notch, home indicator, rounded corners — combined with iOS Safari's incomplete web standards support (no Fullscreen API, no orientation lock) and persistent WebKit bugs. This guide covers the foundational patterns, exact pixel values, critical gotchas, and hard-won workarounds.


1. The Foundational CSS Pattern

@thousandlemons
thousandlemons / how-to-setup-your-ubuntu-server-as-an-always-on-torrent-downloader.md
Created November 1, 2016 09:08
How to setup your Ubuntu server as an always-on torrent downloader

How to setup your Ubuntu server as an always-on torrent downloader

In this tutorial, we are going to install Aria2 on your Ubuntu server, and use Yaaw as the GUI.

First, ssh to your Ubuntu server, and do the following

$ sudo apt-get update
$ sudo apt-get install aria2
@WitherOrNot
WitherOrNot / tspkgen.py
Last active September 10, 2026 10:49
Terminal Services License Server ID + License Key Pack generator
from Crypto.Cipher import ARC4
from hashlib import sha1, md5
from random import randint
from ecutils.core import Point, EllipticCurve
from sys import argv
KCHARS = "BCDFGHJKMPQRTVWXY2346789"
SPK_ECKEY = {
"a": 1,